<?php
use app\models\ActivityApply;
use app\models\Comment;
use yii\helpers\Html;
use yii\helpers\Url;

/* @var $this \yii\web\View */
/* @var $model \app\models\Activity */

?>

<div class="bgfff">
    <div class="card-box">
        <div class="card-box-inner">
            <div class="card-content">
                <div class="card-content-title">
                    <h4><?= Html::encode($model->title); ?></h4>
                    <span><?= Html::encode($model->salary); ?></span>
                </div>
                <div class="card-content-bd">
                    <?= Html::encode($model->company); ?>
                </div>
                <div class="card-content-ft">

                    <div class="fflex">
                        <div>
                            <span><i class="iconfont red">&#xe619;</i><?= Html::encode($model->province); ?></span>
                            <span><i class="iconfont red">&#xe645;</i><?= Html::encode($model->tag); ?></span>
<!--                            <span><i class="iconfont red">&#xe610;</i>180天</span>-->
                        </div>
                        <div><?= date('m/d', $model->ctime); ?></div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<ul class="mui-table-view company-head mt0 mb15">
    <li class="mui-table-view-cell mui-media">
        <a href="javascript:;" data-href="<?= $model->user->getIsStudent() ? '' : Url::to(['company/', 'uid' => $model->uid]); ?>" class="mui-navigate-right">
            <img class="mui-media-object mui-pull-left" src="<?= $model->user->getAvatar(); ?>">
            <div class="mui-media-body">
                <?= $model->user->uname; ?>
                <p class="mui-ellipsis"><?= "{$model->user->profile->industry}/{$model->user->profile->company_scale}"; ?></p>
                <p class="mui-ellipsis">已有<b class="red"><?= $model->comments; ?></b>条评论</p>
            </div>
        </a>
    </li>
</ul>
